<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
</head>
<body>
<header class="main-header">
    <a href="index.jsp" class="logo">
            <span class="logo-mini"><img src="${pageContext.request.contextPath}/resource/static/base/images/logo.png"
                                         style="height:40px;width:40px;">电影系统</span>
        <span class="logo-lg"><img src="${pageContext.request.contextPath}/resource/static/base/images/logo.png"
                                   style="height:40px;width:40px;">微电影管理系统</span>
    </a>
    <nav class="navbar navbar-static-top">
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">下拉菜单</span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <c:choose>
                            <c:when test="${sessionScope.adminImage!=null}">
                                <img src="${pageContext.request.contextPath}/resource/static/base/person/${sessionScope.adminImage}" class="user-image">
                            </c:when>
                            <c:otherwise>
                                <img src="${pageContext.request.contextPath}/resource/static/admin/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            </c:otherwise>
                        </c:choose>
                        <span class="hidden-xs">${sessionScope.adminName}</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="user-header">
                            <c:choose>
                                <c:when test="${sessionScope.adminImage!=null}">
                                    <img src="${pageContext.request.contextPath}/resource/static/base/person/${sessionScope.adminImage}" class="img-circle">
                                </c:when>
                                <c:otherwise>
                                    <img src="${pageContext.request.contextPath}/resource/static/admin/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                                </c:otherwise>
                            </c:choose>
                            <p>${sessionScope.adminName}</p>
                        </li>
                        <c:if test="${sessionScope.adminName!=null}">
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="/person/toAdminpwd" class="btn btn-default btn-flat">修改密码</a>
                                </div>
                                <div class="pull-left">
                                    <a href="/person/toUserView/${sessionScope.adminId}" class="btn btn-default btn-flat">个人信息</a>
                                </div>
                                <div class="pull-left">
                                    <a href="/person/Alayout" class="btn btn-default btn-flat">退出系统</a>
                                </div>
                            </li>
                        </c:if>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
<aside class="main-sidebar">
    <section class="sidebar">
        <div class="user-panel">
            <div class="pull-left image">
                <c:choose>
                    <c:when test="${sessionScope.adminImage!=null}">
                        <img src="${pageContext.request.contextPath}/resource/static/base/person/${sessionScope.adminImage}" class="img-circle">
                    </c:when>
                    <c:otherwise>
                        <img src="${pageContext.request.contextPath}/resource/static/admin/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                    </c:otherwise>
                </c:choose>
            </div>
            <div class="pull-left info">
                <p>用户${sessionScope.adminName}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
            </div>
        </div>
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="搜索...">
                <span class="input-group-btn">
                        <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i
                                class="fa fa-search"></i>
                        </button>
                    </span>
            </div>
        </form>


        <ul class="sidebar-menu">
            <li class="header">管理菜单</li>
            <li class="treeview">
                <a href="">
                    <i class="fa fa-home" aria-hidden="true"></i>
                    <span>首页</span>
                    <span class="label label-primary pull-right">1</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/">
                            <i class="fa fa-circle-o"></i> 控制面板
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-tags" aria-hidden="true"></i>
                    <span>标签管理</span>
                    <span class="label label-primary pull-right">2</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/tag/goAdd">
                            <i class="fa fa-circle-o"></i> 添加标签
                        </a>
                    </li>
                    <li>
                        <a href="/admin/tag/list">
                            <i class="fa fa-circle-o"></i> 标签列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-file-video-o" aria-hidden="true"></i>
                    <span>电影管理</span>
                    <span class="label label-primary pull-right">2</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/goAddMovie">
                            <i class="fa fa-circle-o"></i> 添加电影
                        </a>
                    </li>
                    <li>
                        <a href="/admin/videos">
                            <i class="fa fa-circle-o"></i> 电影列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-film" aria-hidden="true"></i>
                    <span>预告管理</span>
                    <span class="label label-primary pull-right">2</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/goAddPreviewVideo">
                            <i class="fa fa-circle-o"></i> 添加预告
                        </a>
                    </li>
                    <li>
                        <a href="/admin/preview">
                            <i class="fa fa-circle-o"></i> 预告列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-users" aria-hidden="true"></i>
                    <span>用户管理</span>
                    <span class="label label-primary pull-right">1</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/person/toUserlist">
                            <i class="fa fa-circle-o"></i> 用户列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-user-circle" aria-hidden="true"></i>
                    <span>管理员管理</span>
                    <span class="label label-primary pull-right">2</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/person/toAdminAdd">
                            <i class="fa fa-circle-o"></i> 添加管理员
                        </a>
                    </li>
                    <li>
                        <a href="/person/toAdminlist">
                            <i class="fa fa-circle-o"></i> 管理员列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-comments" aria-hidden="true"></i>
                    <span>评论管理</span>
                    <span class="label label-primary pull-right">1</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/comment/homeCommentPage">
                            <i class="fa fa-circle-o"></i> 评论列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-heart" aria-hidden="true"></i>
                    <span>收藏管理</span>
                    <span class="label label-primary pull-right">1</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/move/favorite">
                            <i class="fa fa-circle-o"></i> 收藏列表
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-file-text" aria-hidden="true"></i>
                    <span>日志管理</span>
                    <span class="label label-primary pull-right">3</span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="/admin/tag/goOpList">
                            <i class="fa fa-circle-o"></i> 操作日志列表
                        </a>
                    </li>
                    <li>
                        <a href="/person/toAdminLogs">
                            <i class="fa fa-circle-o"></i> 管理员登录日志列表
                        </a>
                    </li>
                    <li>
                        <a href="/person/toUserLogs">
                            <i class="fa fa-circle-o"></i> 会员登录日志列表
                        </a>
                    </li>
                </ul>
            </li>

        </ul>
    </section>
</aside>




</body>
</html>
